package com.it.mybatisplus.springbootmybatisplu.service.impl;

import com.it.mybatisplus.springbootmybatisplu.mapper.UserMapper;
import com.it.mybatisplus.springbootmybatisplu.model.User;
import com.it.mybatisplus.springbootmybatisplu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }

    @Override
    public void delUser(User user) {
        userMapper.delUser(user);
    }

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }

    @Override
    public User queryUser(User user) {
        return userMapper.queryUser(user);
    }
}
